package com.jack.lib.base.header.style

import android.graphics.Color
import android.view.ViewGroup
import com.blankj.utilcode.util.CloneUtils
import com.jack.lib.base.R
import com.jack.lib.base.header.HeaderIcon
import com.jack.lib.base.header.IHeaderStyle
import com.jack.lib.base.header.IconType
import com.jack.lib.core.ext.MM
import com.jack.lib.core.ext.drawable

/**
 * author : chong.huang
 * create : 2022/1/2
 * desc   :
 */
open class TransparentStyle: IHeaderStyle {

    override var backgroundColor: Int = Color.TRANSPARENT

    override var elevation: Int = 0

    override var width: Int = ViewGroup.LayoutParams.MATCH_PARENT

    override var height: Int = 175.MM

    override var paddingTop: Int = 50.MM

    override var immersed: Boolean = true

    override var icons: MutableList<HeaderIcon> = mutableListOf<HeaderIcon>().also {
        it.add(HeaderIcon(
            type = IconType.BACK,
            drawable = R.drawable.base_ic_arrow_left_white.drawable,
            width = 40.MM,
            height = 40.MM
        ))
        it.add(HeaderIcon(
            type = IconType.TITLE,
            textColor = Color.WHITE,
            textSize = 32.MM,
            width = ViewGroup.LayoutParams.WRAP_CONTENT,
            height = ViewGroup.LayoutParams.WRAP_CONTENT
        ))
        it.add(HeaderIcon(
            type = IconType.RIGHT,
            textColor = Color.WHITE,
            textSize = 28.MM,
            width = ViewGroup.LayoutParams.WRAP_CONTENT,
            height = ViewGroup.LayoutParams.WRAP_CONTENT
        ))

    }
}